home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / ipca12a.zip / IPCATEST.BAT < prev   
DOS Batch File  |  1991-04-17  |  915b  |  42 lines

  1. @echo off
  2. echo clear ipca and write it to screen:
  3. ipca 0
  4. ipca w
  5. echo store string Robert and write ipca to screen:
  6. ipca e Robert
  7. ipca w
  8. echo add string Parkinson and write ipca to screen:
  9. ipca a Parkinson
  10. ipca w
  11. echo test if string ertPark is in ipca and report to screen:
  12. ipca r ertPark
  13. echo test if Perkeo is in ipca and report to screen:
  14. ipca r Perkeo
  15. echo clear ipca and write it to screen:
  16. ipca 0
  17. ipca w
  18. echo set byte 10 to 234 and report to screen
  19. ipca s 10 234
  20. ipca w
  21. echo test if byte 10 is equal to 123 and report
  22. ipca u 10 123
  23. echo test if byte 10 is equal to 234 and report
  24. ipca u 10 234
  25. echo return value of byte 10 in errorlevel
  26. ipca b 10 
  27. if errorlevel 235 goto no
  28. if errorlevel 234 goto yes
  29. goto no
  30. :yes
  31. echo errorlevel equal to 234
  32. goto end
  33. :no
  34. echo errorlevel different than 234
  35. :end
  36. echo reset byte 10 to 0 and report
  37. ipca s 10 0
  38. ipca w
  39. echo That's it!
  40. 
  41.  
  42.